package pe.upc.edu.food.FoodClient.test;

import junit.framework.Assert;



import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import pe.edu.upc.xcode.food.domain.Usuario;
import pe.edu.upc.xcode.food.service.UsuarioService;

@ContextConfiguration("/applicationContext-test1.xml")
@RunWith(SpringJUnit4ClassRunner.class)
 
public class PruebaWebService  {
	
	@Autowired
	private UsuarioService usuario;

	@Test
	public void testLogingUsuario() {
		
		Usuario response = usuario.autenticar("randresfigueroa@gmail.com", "987654321");
		//Assert.assertEquals("Figueroa Contreras" , response.getApellidos());
		Assert.assertNotNull(response);
	}

}
